package io.zhifei.modules.sys.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.zhifei.modules.app.login.entity.Tree;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("sys_org")
public class SysOrgEntity extends Tree implements Serializable {

    @TableId
    @ApiModelProperty("部门id")
    private Long id;

    @ApiModelProperty("部门简称")
    private String name;

    @ApiModelProperty("部门全程")
    private String fullName;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("部门父节点")
    private Long pid;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("删除标识")
    private Integer flag;

    @ApiModelProperty("创建人")
    private Long createUser;

    @ApiModelProperty("创建时间")
    private String createTime;
}
